<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Event extends Model
{
    use SoftDeletes;

    public function  client(){
        return $this
            ->hasOne('App\Models\Client','id','client_id')
           ->select(['clients.id','clients.corporate_name','clients.firstname','clients.lastname','clients.phone','clients.email']);
              }
}
